﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MAPDavy.Repository;
using MAPDavy.Entities; 
using Microsoft.Practices.Unity;


namespace MAPDavy.BusinessLogic
{
    public class LogBL:ILogBL
    {
        [Dependency]
        public ILogRepository LogRepository { get; set; }

        public void AddLog(Log log)
        {
            LogRepository.AddLog(log); 
        }

        public void RemoveLog(int id)
        {
            LogRepository.RemoveLog(id);
        }


        public Log GetFromLogById(int id)
        {
            return LogRepository.GetFromLogById(id);  
        }
    }
}
